<template>
  <div class="data">
    <div class="main">
      <div class="title">
        <router-link to="/clubs/clubs">
          <van-icon name="arrow-left"
        /></router-link>
        <p>如何宣导优质滑嫩的豆腐？</p>
        <span><van-icon name="share-o" /></span>
      </div>
      <img
        src="https://img-qn.51miz.com/preview/photo/00/01/53/30/P-1533076-88C3A01EO.jpg"
        alt=""
      />
      <div class="count">
        <p>
          <img
            src="https://img2.baidu.com/it/u=342630400,1723136259&fm=253&fmt=auto&app=138&f=JPEG?w=650&h=406"
            alt=""
          />肚饥好下饭
        </p>
        <h3>如何宣导优质滑嫩的豆腐？</h3>
        <p class="link">
          豆腐是一种营养丰富又历史悠久的食材，大众对豆腐的喜爱推动了豆腐制作工艺的前进和发展。
        </p>
        <img
          src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fsafe-img.xhscdn.com%2Fbw1%2F639634a1-53c7-42f4-816f-04e68fbbb9f6%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fsafe-img.xhscdn.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1697949376&t=a597196305b7803c6963002f86b3f61f"
          alt=""
        />
        <p class="link">
          豆腐主要的生产过程一是制浆，即将大豆制成豆浆；二是凝固成形，即豆浆在热与凝固剂的共同作用下凝固成含有大量水分的凝胶体，即豆腐
        </p>
        <img
          src="https://materials.cdn.bcebos.com/images/24673600/26c88bfb835f68ca78fb134d1cb511ff.jpeg"
          alt=""
        />
      </div>
      <div class="commodity">
        <h5>相关菜谱</h5>
        <div class="commcount">
        <router-link to="/clubs/dishes">
          <p>
            <img
              src="https://crawl.nosdn.127.net/e364c387c03b6c11f943f344f0f67d8d.jpg"
              alt=""
            />
            <span> 甜瓜抹茶冰棒</span>
          </p>
        </router-link>
          <!-- <p>
            <img
              src="https://crawl.nosdn.127.net/e364c387c03b6c11f943f344f0f67d8d.jpg"
              alt=""
            />
            <span>甜瓜抹茶冰棒</span>
          </p> -->
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {},
};
</script>

<style scoped lang="scss">
.data {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.main {
  overflow: scroll;
  flex: 1;
  .title {
    width: 350px;
    position: fixed;
    top: 10px;
    left: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    p {
      width: 100px;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    .van-icon {
      color: #fff;
      font-size: 20px;
    }
  }
  img {
    width: 100%;
    height: 200px;
  }
}
.count {
  .link {
    line-height: 26px;
  }
  h3 {
    margin-left: 10px;
  }
  img {
    width: 350px;
    height: 350px;
    border-radius: 10px;
    margin-left: 12px;
    margin-top: 20px;
  }
  p {
    margin-top: 10px;
    margin-left: 10px;
    img {
      width: 30px;
      height: 30px;
      border-radius: 20px;
      margin: 0 10px;
    }
  }
}
.commodity {
  h5 {
    border-left: 5px solid green;
    padding-left: 10px;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .commcount{
    display: flex;
    p {
    width: 100px;
    height: 120px;
    margin-left: 10px;
    img {
      border-radius: 10px;
      width: 100px;
      height: 100px;
    }
    span {
      display: block;
    }
  }
  }
  
}
</style>